package com.room.search.service.dto;

import java.io.Serializable;
import java.util.Date;

/**
 * By   : ghd.bright
 * Time : 2022/3/12
 * Description: 在线用户DTO
 */
public class RoomUserOnlineDTO implements Serializable {
    /** 用户名称 */
    private String username;

    /** 登录IP地址 */
    private String ipaddr;

    /** 登录地址 */
    private String loginLocation;

    /** 浏览器类型 */
    private String browser;

    /** 操作系统 */
    private String os;

    /** 登录时间 */
    private Date loginTime;

    public String getUsername() {
        return username;
    }

    public RoomUserOnlineDTO setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getIpaddr() {
        return ipaddr;
    }

    public RoomUserOnlineDTO setIpaddr(String ipaddr) {
        this.ipaddr = ipaddr;
        return this;
    }

    public String getLoginLocation() {
        return loginLocation;
    }

    public RoomUserOnlineDTO setLoginLocation(String loginLocation) {
        this.loginLocation = loginLocation;
        return this;
    }

    public String getBrowser() {
        return browser;
    }

    public RoomUserOnlineDTO setBrowser(String browser) {
        this.browser = browser;
        return this;
    }

    public String getOs() {
        return os;
    }

    public RoomUserOnlineDTO setOs(String os) {
        this.os = os;
        return this;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public RoomUserOnlineDTO setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
        return this;
    }

    @Override
    public String toString() {
        return "RoomUserOnlineDTO{" +
            "userName='" + username + '\'' +
            ", ipaddr='" + ipaddr + '\'' +
            ", loginLocation='" + loginLocation + '\'' +
            ", browser='" + browser + '\'' +
            ", os='" + os + '\'' +
            ", loginTime=" + loginTime +
            '}';
    }
}
